package DBTasks;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

//Just for running the DBTasks for testing purposes
/**
 * 
 * @author Stephen
 * 
 */

public class TestRunner {
    public static void main(String[] args) {
        DBTask.connectToDatabase();

        System.out.println(Login.login(1, "Kitties Galore", "123456"));
        System.out.println(Login.login(2, "Doggies Galore", "password"));
        System.out.println(Login.login(3, "Atlanta Humane Society", "ilovedogs"));
        ArrayList<Pet> pets = PetSearch.search("Dog", "Beagle", 30338, "F", "Old");
        for (Pet each : pets) {
            System.out.println(each);
        }
        System.out.println(ShelterSearch.search(30907));
        System.out.println(ShelterSearch.search(30338));

        // AddPet.addPet("Atlanta Humane Society", true, "Beagle", "F", "Joe",
        // "old");

        Map<Integer, List<Donation>> lmd = LargestMonthlyDonations.getLargestMonthlyDonations("Kitties Galore");
        System.out.println(lmd);

        DetailedAdoptionsForShelter.getDetailedAdoptions("2013-07-22", "Doggies Galore");

        // FosterHomeAssignment.assign(1, "Kitties Galore", "John Smith",
        // "7709231122");
        //FosterHomeAssignment.assign(27, "Atlanta Humane Society",
        // "John Smith", "404 231 1123");
        List<AdoptionsSummary> year = CurrentYearPetAdoptions.getReport("Current Year Shelter");
        for (int i = 0; i < year.size(); i++) {
        	System.out.println((i+1)+"\t"+year.get(i));
        }
    }
}
